<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="${ctxStatic}/css/fantasy-home.css">
    <link type="text/css" rel="stylesheet" href="${ctxStatic}/css/mainstyle.css"/>

    <script language="javascript">
            function toStreet(fromid, targetid) {
        var url = "${pageContext.request.contextPath}/fantasy/move/moveTo?fromid=" + fromid + "&targetid=" + targetid;
        parent.homeleftframe.window.location = "${pageContext.request.contextPath}/fantasy/move/toCompass";
        parent.contentframe.window.location = url;
    }
    </script>
</head>
<body>

<div id="main">
    <div class="ads">
        <img src="${ctxStatic}/images/f/豪华官邸_03.jpg" border="0">
    </div>
    <div id="sysmsgtitle">
        系統更新消息
    </div>
    <div id="sysmsg">
        系統更新消息系統更新消息<br/>
        系統更新消息<br/>
        系統更新消息<br/>
        系統更新消息<br/>
        系統更新消息<br/>
        系統更新消息<br/>
        系統更新消息<br/>
        系統更新消息<br/>
        系統更新消息<br/>
        系統更新消息<br/>
        系統更新消息<br/>
        系統更新消息<br/>
        系統更新消息系統更新消息<br/>

    </div>
    <div id="guizititle">
        物品陈列柜
    </div>
    <div id="guizidiv">
        <table>
            <tr>
                <td colspan="10">
                    点击它就可以打开！
                    <a href="javascript:w('queryItems.action','_blank',400,300,'yes')">家中物品查询</a>
                </td>
            </tr>
            <tr>

                <c:forEach items="${cabinets}" var="cabinet" varStatus="status">
                <td>
                    <a id="${status.count }" href="javascript:w('cabinetitems.action?userid=${user.id }&curcabinetid=${cabinet.id}','_blank',400,300,'yes')">
                        <img alt="a${cabinet.name}" title="${cabinet.name}"
                             src="${ctxStatic}/images/fantasy/${cabinet.imgsrc}">
                    </a>
                </td>
                <c:if test="${status.count % 9 == 0 }">
            </tr>
            <tr>
                </c:if>
                </c:forEach>
            </tr>
        </table>
    </div>
</div>
<div id="sidebox">
    <div id="topstitle">
        用户排行
    </div>
    <div id="tops">
        <table>
            <tr>
                <td>
                    <a href="#">经验榜</a>
                </td>
                <td>
                    <a href="#">时间榜</a>
                </td>
            </tr>
            <tr>
                <td>
                    <a href="#">本人经验排名</a>
                </td>
                <td>
                    <a href="#">本人时间排名</a>
                </td>
            </tr>
        </table>
    </div>
    <div id="movesdiv">
        <div id="movestitle">
            用户行为
        </div>
        <div id="moves">
            <table>
                <tr>
                    <td>
                        <a href="javascript:toStreet('${fromid}', '${targetid}')">上　　街</a>
                    </td>
                    <td>
                        <a href="#">休　　息</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <a href="javascript:w('showallattr.action','_blank',500,300,'yes')">个人资料</a>
                    </td>
                    <td>
                        <a href="citybuild.action">好友管理</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <a href="#" style="color:red">信　　箱</a>
                    </td>
                    <td>
                        <a href="javascript:w('sortitems.action?userid=${user.id }','_blank',400,300,'yes')">道具整理</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <a href="javascript:w('youle/icq/emotelist.jsp','_blank',350,500,'yes')">聊天动作</a>
                    </td>
                    <td>
                        <a href="#" style="color:red">新手指南</a>
                    </td>
                </tr>
            </table>
        </div>
    </div>

</div>
</body>
</html>
